package com.springboot.service.impl;

import com.springboot.mapper.DoctorInfoFormMapper;
import com.springboot.mapper.UserLoginFormMapper;
import com.springboot.model.DoctorInfoForm;
import com.springboot.model.UserLoginForm;
import com.springboot.service.UserSetInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserSetInfoServiceImpl implements UserSetInfoService {
    @Autowired
    private UserLoginFormMapper userLoginFormMapper;
    private DoctorInfoFormMapper doctorInfoFormMapper;

    //通过手机号查找患者
    @Override
    public UserLoginForm findUserByTel(String tel)
    {
        UserLoginForm userLoginForm = userLoginFormMapper.selectByTel(tel);
        return userLoginForm;
    }

    //通过手机号查找医生id
    @Override
    public DoctorInfoForm findDocById(String Tel)
    {
        DoctorInfoForm doctorInfoForm = doctorInfoFormMapper.selectByTel(Tel);
        return doctorInfoForm ;
    }





}
